package com.snts.synchronization.protocol;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.naming.OperationNotSupportedException;

public interface ProtocolAdapter<T extends Object> {
	T parseMessage(InputStream is) throws Exception;
	void serializeMessage(T message, OutputStream outputStream) throws OperationNotSupportedException, IOException, UnsupportedOperationException, ProtocolException;
}
